package org.example.blogpojo.blog.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * Tb Employee表
 * @TableName tb_employee
 */
@Data
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema (description = "主键")
    private Long id;

    @Schema (description = "账号")
    private String username;

    @Schema (description = "电话")
    private String phone;

    @Schema (description = "邮箱")
    private String email;

    @Schema (description = "盐值")
    private String salt;

    @Schema (description = "密码")
    private String password;

    @Schema (description = "年龄")
    private Integer age;

    @Schema (description = "员工状态 - 1启用，0禁用")
    private Integer state;

    @Schema (description = "登录信息Id")
    private Long logininfoId;

    //一对多
    @Schema (description = "角色集合")
    private List<Role> dbRoles=new ArrayList<>();//防空

    @Schema (description = "登录信息Id")
    private List<Long> roleids=new ArrayList<>();//防空
}